package com.liuzh.deviceinfo.card;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.opengl.GLSurfaceView.Renderer;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import androidx.cardview.widget.CardView;
import c.h.a.m0.p.a;
import c.h.a.z.n;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

public class GpuCard extends CardView implements Renderer {
    public GLSurfaceView j;

    public GpuCard(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        setUseCompatPadding(true);
        FrameLayout.inflate(getContext(), 2131492929, this);
        try {
            GLSurfaceView gLSurfaceView = new GLSurfaceView(getContext());
            this.j = gLSurfaceView;
            gLSurfaceView.setRenderer(this);
            addView(this.j);
        } catch (Exception unused) {
        }
    }

    public void onDrawFrame(GL10 gl10) {
    }

    public void onSurfaceChanged(GL10 gl10, int i, int i2) {
    }

    public void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) {
        a.b(new n(this, gl10.glGetString(7937), gl10.glGetString(7936), gl10.glGetString(7938)));
    }
}
